package com.Generics.bean.ch04;

/**
 * @author nmm
 * @date 2024-03-2024/3/29
 * @deriction njm......
 */
public class Potato extends MeeklyAnimals{
    private  String name;

    private  int age;

    private  String sex;

    public Potato(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }


    @Override
    public String toString() {
        return "Potato{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }

    public Potato() {
    }


}

